home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16588 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.7 KB  |  45 lines

  1. Newsgroups: comp.lang.c++
  2. Path: netcom.com!marnold
  3. From: marnold@netcom.com (Matt Arnold)
  4. Subject: Re: >> Resource Stamping <<
  5. Message-ID: <marnoldDpot6E.70y@netcom.com>
  6. Organization: NETCOM On-line Communication Services (408 261-4700 guest)
  7. References: <4ki7l8$lju@jaring.my>
  8. Date: Thu, 11 Apr 1996 07:37:26 GMT
  9. Sender: marnold@netcom22.netcom.com
  10.  
  11. graeme@iwop.po.my writes:
  12.  
  13.  
  14. >How do I write to a compiled resource.
  15.  
  16. Oh, you do do you?
  17.  
  18. >Microsoft do it in their setup toolkit, but how ???
  19.  
  20. By opening the executable file, parsing the resource directory, finding
  21. the raw data, changing it, updating the directory, etc..  Hey, they're 
  22. Microsoft; they do what they want.
  23.  
  24. Unfortunately, they gave you no way to do this in the Win16 API.  You
  25. *could* use that MSINSSTF.DLL that comes with the Setup Toolkit for 
  26. this one bit of functionality (the FStampResource() function, I think).
  27.  
  28. So, you either drag around MSINSSTF.DLL for that one function, write 
  29. your own resource-changing code (you'll need all the proper NE file 
  30. format documentation), or don't do it.
  31.  
  32. The Win32 API, on the other hand, has functions for writing to the
  33. resources of an EXE or DLL (and not just version stamps!).  See the
  34. UpdateResource() function.
  35.  
  36. Regards,
  37. -------------------------------------------------------------------------
  38. Matt Arnold                       |        | ||| | |||| |  | | || ||
  39. marnold@netcom.com                |        | ||| | |||| |  | | || ||
  40. Boston, MA                        |      0 | ||| | |||| |  | | || ||
  41. 617.389.7384 (h) 617.576.2760 (w) |        | ||| | |||| |  | | || ||
  42. C++, MIDI, Win32/95 developer     |        | ||| 4 3 1   0 8 3 || ||
  43. -------------------------------------------------------------------------
  44.  
  45.